<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Gmap
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>
<?php if ($this->paginator->getTotalItemCount()): ?>
  
  <div class="gmaps_widget_listrecent_map_wrapper">
      <?php echo $this->gmapMarkers($this->google_map, $this->paginator, array(
        'width' => '100%',
        'height' => '340px',
      )); ?>
  </div>
 
	<ul class="gmaps_recent">
	<?php foreach( $this->paginator as $item ): ?>
	  <li>
      <?php if ($this->show_photo): ?>
	    <div class="gmap_photo">
        <?php echo $this->gmapAddressLink($this->google_map, $item, array(), array('text'=>$this->itemPhoto($item, 'thumb.normal')))?>
	    </div>
      <?php endif; ?>
	    <div class="gmap_info">
	      <div class="gmap_title">
				  <?php echo $this->gmapAddressLink($this->google_map, $item, array(), array('text'=>$this->radcodes()->text()->truncate($item->getTitle(), $this->titlelength)))?>
	      </div>
        <?php if ($this->show_details): ?>
	        <div class="gmap_meta">
	          <?php echo $this->timestamp($item->creation_date) ?>
            <br /><?php echo $this->translate('by %s', $item->getOwner()->__toString()); ?>
	        </div>
        <?php endif; ?>
	    </div>
	  </li>
	<?php endforeach; ?>
	</ul>
<?php endif; ?>